package cn.micro.system.manage.entity;
import cn.micro.system.manage.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 产品信息
 * </p>
 *
 * @author wr
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AssetDimProductInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 产品编号
     */
    private String code;

    /**
     * 产品名称
     */
    private String name;

    /**
     * 产品介绍
     */
    private String descInfo;

    /**
     * 上架时间（yyyy-MM-dd）
     */
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate pubTime;

    /**
     * 状态（0：正常，1：已下架）
     */
    private Integer status;

    /**
     * 产品链接
     */
    private String productConnect;

    /**
     * 产品类型ID
     */
    private String typeId;

    /**
     * 创建者ID
     */
    private Long createUserId;


    /**
     * 更新者ID
     */
    private Long updateBy;

    @TableField(exist = false)
    private String typeName;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String NAME = "name";

    public static final String DESC_INFO = "desc_info";

    public static final String PUB_TIME = "pub_time";

    public static final String STATUS = "status";

    public static final String PRODUCT_CONNECT = "product_connect";

    public static final String TYPE_ID = "type_id";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String UPDATE_BY = "update_by";

    public static final String IS_DELETED = "is_deleted";

}
